﻿using UnityEngine;
using System.Collections;

public class OtherHuman : MonoBehaviour 
{
	private bool _IsHoverd;
	private BoxCollider _boxCollider;
	private UIWidget _widget;
	private HumanProperty _humanProperty;

	void Awake()
	{
		_boxCollider = this.GetComponent<BoxCollider>();
		_widget = this.GetComponent<UIWidget>();
		_humanProperty = this.GetComponent<HumanProperty>();
	}

	void Start()
	{
		_boxCollider.size = new Vector3 (_widget.width, _widget.height, _boxCollider.size.z);
	}

	void Update()
	{

	}

	void OnHover (bool isOver)		
	{ 
		_IsHoverd = isOver;
		print (isOver);

	}


	void OnClick()
	{
		Debug.Log("Button is Click!!!");
		Player._instance.Spouse (_humanProperty);
	}
}
